/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package core.connector.email.http.viva;

import core.connector.ConnectionDetails;
import core.connector.email.http.gmail.HttpConnectorGmail;
import core.util.JGoogleAnalytics;

/**
 *
 * @author Vinicius
 */
public class HttpConnectorVivaPolska extends HttpConnectorGmail{

    public HttpConnectorVivaPolska(ConnectionDetails connectionDetails){
        super(connectionDetails);
        if(connectionDetails.getLogin() != null && (connectionDetails.getLogin().trim().indexOf("@vivapolska.tv") == -1)){
            String login = connectionDetails.getLogin() + "@vivapolska.tv";
            connectionDetails.setLogin(login);
            this.user = login;
        }
        JGoogleAnalytics.trackAsynchronously("Connector HTTP - Viva Polska TV-MAIL");
    }   


}
